<template>
	<view class="content">
		<view class="u-demo-block">
			<text class="u-demo-block__title">可滑动</text>
			<view>
				<swiper
					:indicator-dots="true"
					class="swiper"
				>
					<swiper-item>
						<u-grid :border="true">
							<u-grid-item
								v-for="(item, index) in swiperList"
								:index="index"
								:key="index"
							>
								<u-icon
									:customStyle="{paddingTop:20+'rpx'}"
									:name="item"
									:size="22"
								></u-icon>
								<text class="grid-text">{{ '宫格' + (index + 1) }}</text>
							</u-grid-item>
						</u-grid>
					</swiper-item>
					<swiper-item>
						<u-grid :border="true">
							<u-grid-item
								v-for="(item, index) in swiperList"
								:index="index + 9"
								:key="index"
							>
								<u-icon
									:customStyle="{paddingTop:20+'rpx'}"
									:name="item"
									:size="22"
								></u-icon>
								<text class="grid-text">{{ '宫格' + (index + 1) }}</text>
							</u-grid-item>
						</u-grid>
					</swiper-item>
					<swiper-item>
						<u-grid :border="true">
							<u-grid-item
								v-for="(item, index) in swiperList"
								:index="index + 18"
								:key="index"
							>
								<u-icon
									:customStyle="{paddingTop:20+'rpx'}"
									:name="item"
									:size="22"
								></u-icon>
								<text class="grid-text">{{ "宫格" + (index + 1) }}</text>
							</u-grid-item>
						</u-grid>
					</swiper-item>
				</swiper>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				swiperList: ['integral', 'kefu-ermai', 'coupon', 'gift', 'scan', 'pause-circle', 'wifi', 'email', 'list'],
			}
		},
		methods: {
			
		}
	}
</script>

<style scopedn lang="scss">
.swiper {
		height: 220px;
	}

	.grid-text {
		font-size: 14px;
		color: #909399;
		padding: 10rpx 0 20rpx 0rpx;
		/* #ifndef APP-PLUS */
		box-sizing: border-box;
		/* #endif */
	}
</style>
